package au.edu.swin.videoshop.bean;

import java.io.Serializable;

public class TitleCategory implements Serializable{
	private Long mTitleCategoryId;
	private String mCategoryName;
	private String mDescription;
	
	public TitleCategory() {
	}
	
	/**
	 * @return the titleCategoryId
	 */
	public Long getTitleCategoryId() {
		return mTitleCategoryId;
	}

	/**
	 * @param titleCategoryId the titleCategoryId to set
	 */
	public void setTitleCategoryId(Long titleCategoryId) {
		mTitleCategoryId = titleCategoryId;
	}

	/**
	 * @return the categoryName
	 */
	public String getCategoryName() {
		return mCategoryName;
	}
	
	/**
	 * @param categoryName the categoryName to set
	 */
	public void setCategoryName(String categoryName) {
		mCategoryName = categoryName;
	}
	
	/**
	 * @return the description
	 */
	public String getDescription() {
		return mDescription;
	}
	
	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		mDescription = description;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj instanceof TitleCategory) {
			return this.mTitleCategoryId.equals(((TitleCategory)obj).mTitleCategoryId);
		}
		return false;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		return mTitleCategoryId.hashCode();
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return mCategoryName;
	}
}
